package com.mashibing.mallgateway.controller

import com.mashibing.common.utils.R
import groovy.transform.CompileStatic
import groovy.transform.TypeChecked
import org.springframework.beans.factory.annotation.Value
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@CompileStatic
@TypeChecked
@RestController
@RequestMapping("/gateway")
class TestController {

//    @Value('${code}')
//    private String code

    @GetMapping("/test1")
    R test1(){
        return R.ok().put("test", 111)
    }
}
